def factorial(n):
    if n==1 or n==0:
        return n
    else:
        total =n*factorial(n-1)
        return total

m =int(input("输入n："))
factorial_total =factorial(m)
print("{0}的阶乘是{1}".format(m,factorial_total))
